import { reqAddCart } from "../../apis/cart"
// components/card/card.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    list: {
      type: Array
    }
  },

  /**
   * 组件的初始数据
   */
  data: {},

  methods: {
    goDetail(e) {
      const { goodsid } = e.currentTarget.dataset
      wx.navigateTo({
        url: '/pages/detail/detail?goodsId=' + goodsid,
      })
    }
  }

})